import { RouteConfig } from "vue-router"

const routes: Array<RouteConfig> = [
  {
    path: "/addresses",
    name: "Addresses",
    component: () => import("../views/address").then(address => address.List),
    props: true,
    meta: { requiresAuth: true },
  },
  {
    path: "/addresses/new",
    name: "NewAddress",
    component: () => import("../views/address").then(address => address.New),
    props: true,
    meta: { requiresAuth: true },
  },
  {
    path: "/addresses/:id/edit",
    name: "EditAddress",
    component: () => import("../views/address").then(address => address.Edit),
    props: true,
    meta: { requiresAuth: true },
  },
]

export default routes
